package com.reder.practice.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * 评论表实体类
 *
 * @author Fish
 * <p>Email: fishinlove@163.com</p>
 * <p>created by 2019/09/20 16:05:06</p>
 */
@ApiModel("评论表实体类")
public class Comment {
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键，后台自动填充", example = "0")
    private Long id;

    /**
     * 用户主键，表示这个评论属于哪个用户
     */
    @ApiModelProperty(value = "用户主键，表示这个评论属于哪个用户", example = "0")
    private Long userId;

    /**
     * 视频主键，表示这个评论属于哪个视频
     */
    @ApiModelProperty(value = "视频主键，表示这个评论属于哪个视频", example = "0")
    private Long videoId;

    /**
     * 评论内容
     */
    @ApiModelProperty("评论内容")
    private String content;

    /**
     * 评论时间
     */
    @ApiModelProperty("评论时间，后台自动填充")
    private Date createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getVideoId() {
        return videoId;
    }

    public void setVideoId(Long videoId) {
        this.videoId = videoId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", videoId=").append(videoId);
        sb.append(", content=").append(content);
        sb.append(", createTime=").append(createTime);
        sb.append("]");
        return sb.toString();
    }
}